package com.epin.base.enums.commons;

public enum WebResultEnum {
	/**
	 * 操作成功
	 * */
	OK("0", "操作成功！"),
	/**
	 *系统异常！
	 * */
	ERROR("1", "系统异常."),
	
	ERROR_PHONE_IS_USED("2", "该账号已被绑定."),
	
	ERROR_PARAMS("4","参数错误."),
	
	ERROR_ACCOUNT_PASSWORD_NULL("5","用户名或密码不能为空."),
	
	ERROR_ACCOUNT_PASSWORD_ERROR("6","用户名或密码错误."),
	
	ERROR_INTERFACE("7","接口调用失败."),
	
	ERROR_RESOURCE_DELETE("8","请先删除该资源的子项."),
	
	ERROR_UPLOAD_IMG("9","图片上传失败."),
	
	ERROR_REFRENCE("10", "当前记录被引用了不能删除.")
	;
	
	
	
	private String val;
	private String name;

	WebResultEnum(String val, String name) {
		this.val = val;
		this.name = name;
	}

	public String getVal() {
		return this.val;
	}

	public String getName() {
		return this.name;
	}
}
